#小红拿到了一个字符串，她希望你帮她切割成若干子串，满足以下两个条件： 
#1. 子串长度均为不小于 3 的奇数。
#2. 子串内部的字符全部相同。

#length = int(input())
#s = input()

length = 11
s = 'aaabbbbbbbb'

left,right = 0,0
while right < length:

    if s[right] != s[left]:
        
        if (right - left) % 2 == 1:
            print(s[left:right])
        else:
            print(s[left:left+3])
            print(s[left+3:right])
        left = right
    else:
        right += 1
    
if (right - left) % 2 == 1:
    print(s[left:right])
else:
    print(s[left:left+3])
    print(s[left+3:right])
